import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect:'/MenDianAdd'
    },
    {
      path: '/MenDianAdd',
      component: () => import('../views/MenDianAdd.vue')
    },
    {
      path: '/MenDianShow',
      component: () => import('../views/MenDianShow.vue')
    },
    {
      path: '/YHJAdd',
      component: () => import('../views/YHJAddVue.vue')
    },
    {
      path: '/YHJShow',
      component: () => import('../views/YHJSowVue.vue')
    }
  ]
})

export default router
